package effective_java.design_pattern.visitor;

/**
 * @author Verlet
 * @date 2023-10-05 01:59
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());

        Owner owner = new Owner();
        home.action(owner);

        Someone someone = new Someone();
        home.action(someone);
    }
}
